home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000274_fdc@columbia.edu_Mon Feb 10 10:27:10 EST 2003.msg < prev    next >
Text File  |  2020-01-01  |  4KB  |  87 lines

  1. Article: 14070 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Serial Communications with a Keyspan Adapter on Mac OS X
  6. Date: 10 Feb 2003 10:26:48 -0500
  7. Organization: Columbia University
  8. Lines: 70
  9. Message-ID: <b28gbo$557$1@watsol.cc.columbia.edu>
  10. References: <a42d788b.0302092140.545556cc@posting.google.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1044890809 14121 128.59.39.139 (10 Feb 2003 15:26:49 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 10 Feb 2003 15:26:49 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14070
  16.  
  17. In article <a42d788b.0302092140.545556cc@posting.google.com>,
  18. Dan Tappin <dan@wavefront.ca> wrote:
  19. : I am trying to talk to a APC UPS via kermit.
  20. : I am running Mac OS X and and using a Keyspan serial adapter.
  21. : I have a cable to connect the serial port to the UPS as descriped
  22. : here:
  23. : http://www.exploits.org/nut/
  24. : It details the pin-out between a Mac serial port and an APC UPS.
  25. : I have installed kermit but I can't seem to get a responce back from
  26. : the unit.  Here is an example:
  27. : [junior:/usr/local/bin] admin% ./kermit
  28. : C-Kermit 8.0.206, 24 Oct 2002, for Mac OS X 1.0
  29. :  Copyright (C) 1985, 2002,
  30. :   Trustees of Columbia University in the City of New York.
  31. : Type ? or HELP for help.
  32. : (/usr/local/bin/) C-Kermit>set line /dev/tty.USA28X11P1.1
  33. : (/usr/local/bin/) C-Kermit>set carrier-watch off
  34. : (/usr/local/bin/) C-Kermit>set speed 2400
  35. : (/usr/local/bin/) C-Kermit>set serial 8n1
  36. :
  37. At this point, what does SHOW COMM say?
  38.  
  39. : No matter what command I send to the UPS I get no response back.
  40. : Any ideas / pointers out there?
  41. There are several components to the connection, so the trick is to
  42. isolate the culprit.
  43.  
  44.  . Can you use C-Kermit on Mac OS X to communicate with any other
  45.    serial devices through the same serial port?  (For example, can
  46.    you use C-Kermit to dial an external modem, using a regular modem
  47.    cable?)
  48.  
  49.  . Can you use any other terminal or emulator to communicate with
  50.    the UPS?  (either on your Mac or on any other computer?)
  51.  
  52. Obviously the cable has to be right.  I don't have hands-on access to
  53. Mac OS X so have not been able to check its serial-port / modem
  54. characteristics.  I assume you chose the DB9-Din8 cable?
  55.  
  56.   http://www.exploits.org/nut/library/cables/mac-940-0024C.png
  57.  
  58. But neither DB9 nor Din8 pin assignments are well standardized, so how
  59. do we know the diagram applies to your setup?
  60.  
  61. Unix-based OS's tend to have multiple device names for the same physical
  62. device, associated with different drivers (one for direct-connect, one for
  63. modems, one for hardware flow control, one for dialing in, one for dialing
  64. out, etc etc).
  65.  
  66. If the Mac has a Din-8 like earlier Macs, then it's RS-422, not RS-232,
  67. and does not even have modem signals.  So if the driver requires them,
  68. you're out of luck; you'll need to switch to a direct-connect driver.
  69.  
  70. I assume the driver came with your Keyspan serial adapter?  In that case,
  71. you probably need to check with Keyspan about how to connect to the UPS
  72. with three wires from Mac OS X.
  73.  
  74. Finally, you have to be sure the UPS itself does not require modem
  75. signals (DTR, CD, CTS, DSR, etc), since the cable in the diagram is not
  76. supplying them.  And of course the speeds have to match, etc.
  77.  
  78. - Frank
  79.